const log4js = require('koa-log4');
const logger = log4js.getLogger('routes::staff');
const router = require('koa-router')();
exports = module.exports = router;
const mongodb = require('mongodb');
const ObjectId = mongodb.ObjectId;

const user_service = require(global.prefixPath + '/services/user');


router.get('/test', async (ctx, next) => {
	ctx.state.users = [{name: 'Dead Horse'}, {name: 'Jack'}, {name: 'Tom'}];
	return await ctx.render('test');
});